#include "stdafx.h"
#include "MemberInfo.h"


CMemberInfo::CMemberInfo(void)
{
	m_strName = "";
	m_strUserName = "";
	m_strLastLoginDate = "";
	m_strWhereFrom = "";
	m_strNote = "";
	m_nLoginCount = 0;
}


CMemberInfo::~CMemberInfo(void)
{
}



CMemberInfo::CMemberInfo(std::string strName, std::string strUserName, 
						 std::string strLastLoginData, std::string strWhereFrom, 
						 std::string strNote)
{
	m_strName = strName;
	m_strUserName = strUserName;
	m_strLastLoginDate = strLastLoginData;
	m_strWhereFrom = strWhereFrom;
	m_strNote = strNote;
}

bool CMemberInfo::IsComplete()
{
	if (m_strName.length() ==0 || m_strUserName.length() == 0 ||	
		m_strLastLoginDate.length() == 0 || m_strWhereFrom.length() == 0)
	{
		return false;
	}else{
		return true;
	}
}

void CMemberInfo::toDb()
{

}
